import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        String[] arr = new String[]{"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};
        String s = new Scanner(System.in).next();
        String s1 = "";
        for (int i = 0; i < s.length(); i++) {
            if(s.charAt(i) == '-') {
               s1 += "fu";
            }
            if(i != s.length()-1){
                s1 += arr[s.charAt(i)-'0']+" ";
            }else {
                s1 += arr[s.charAt(i)-'0'];
            }
        }
        System.out.println(s1);
        System.out.println(s1.length());
    }
}
